<!DOCTYPE html>
<html lang="zh-CN">
	<head>
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
		<meta charset="utf-8" />
		<title>{$current['title']}-{$Think.CONFIG.title}</title>

		<meta name="keywords" content="{$Think.CONFIG.keywords}" />
		<meta name="description" content="{$Think.CONFIG.description}" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />

		<include file="Public/head" />
   </head>

	<body class="no-skin">
		<include file="Public/header" />
		<div class="main-container" id="main-container">
			<script type="text/javascript">
				try{ace.settings.check('main-container' , 'fixed')}catch(e){}
			</script>

			<include file="Public/sidebar" />
			<div class="main-content">
				<div class="main-content-inner">
					<!-- #section:basics/content.breadcrumbs -->
					<include file="Public/breadcrumbs" />

					<!-- /section:basics/content.breadcrumbs -->
					<div class="page-content">
						<include file="Public/set" />

						<!-- /section:settings.box -->
						<div class="row">
							<div class="col-xs-12">
								<!-- PAGE CONTENT BEGINS -->
									<form class="form-horizontal" id="form" method="post" action="{:U('update')}">
									<input type="hidden" name="id" value="{$is}" id="aid" />

									<div class="space-4"></div>
									<div class="form-group">
										<label class="col-sm-1 control-label no-padding-right" for="form-field-1"> 公司名称 </label>
										<div class="col-sm-9">
											<input type="text" name="title1" id="title1" placeholder="公司名称" class="col-xs-10 col-sm-5" value="{:getCompanyName($id)}">
											<input type="hidden" name="title" id="title" placeholder="公司名称" class="col-xs-10 col-sm-5" value="{$id}">
											<span class="help-inline col-xs-12 col-sm-7">
												<span class="middle">公司名称不能为空。</span>
											</span>
										</div>
									</div>

									<div class="space-4"></div>


									<div class="form-group">
										<label class="col-sm-1 control-label no-padding-right" for="form-field-3"> 跟进内容 </label>
										<div class="col-sm-9">
											<textarea name="content" id="description" placeholder="跟进内容" class="col-xs-10 col-sm-5" rows="5">{$article['description']}</textarea>
											<span class="help-inline col-xs-12 col-sm-7">
												<span class="middle">跟进内容。</span>
											</span>
										</div>
									</div>

										<div class="space-4"></div>

										<div class="form-group">
											<label class="col-sm-1 control-label no-padding-right" for="id-date-picker-1">跟进时间</label>
											<div class="col-xs-9 col-sm-9">
												<div class="input-group col-xs-5">
													<input class="form-control" id="birthday" name="time" value="{$member['birthday']|date="Y-m-d",###}" type="text" data-date-format="dd-mm-yyyy" />
												<span class="input-group-addon">
													<i class="ace-icon fa fa-calendar bigger-110"></i>
												</span>
												</div>
											</div>
										</div>
									<div class="space-4"></div>
									

									<div class="col-md-offset-2 col-md-9">
										<button class="btn btn-info submit" type="button">
											<i class="icon-ok bigger-110"></i>
											提交
										</button>

										&nbsp; &nbsp; &nbsp;
										<button class="btn" type="reset">
											<i class="icon-undo bigger-110"></i>
											重置
										</button>
									</div>
								</form>
								<!-- PAGE CONTENT ENDS -->
							</div><!-- /.col -->
						</div><!-- /.row -->
					</div><!-- /.page-content -->
				</div>
			</div><!-- /.main-content -->
			<include file="Public/footer" />
			
		</div><!-- /.main-container -->

		<include file="Public/footerjs" />
		<!-- inline scripts related to this page -->


		<script type="text/javascript">
		$(function() {

			$(".submit").click(function(){
				var title = $("#title").val();
				var content = $("#content").val();
				if(title==''){
					bootbox.dialog({
						title: '友情提示：',
						message: "文章标题必须填写。", 
						buttons: {
							"success" : {
								"label" : "确定",
								"className" : "btn-danger"
							}
						}
					});
					return;
				}
				if(content==''){
					bootbox.dialog({
						title: '友情提示：',
						message: "文章内容需要填写。", 
						buttons: {
							"success" : {
								"label" : "确定",
								"className" : "btn-danger"
							}
						}
					});
					return;
					return;
				}
				$("#form").submit();
			});
		});
		</script>
	</body>
</html>
